using SqlSugar;

namespace Auth.Domain.Entities
{
    [SugarTable("Auth_Role")]
    public class RoleModel : BaseEntity
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50)]
        public string RoleName { get; set; }
        
        /// <summary>
        /// 角色描述
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 200)]
        public string Description { get; set; }
        
        /// <summary>
        /// 角色编码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50)]
        public string RoleCode { get; set; }
        
        /// <summary>
        /// 是否系统角色
        /// </summary>
        [SugarColumn(IsNullable = false, DefaultValue = "0")]
        public bool IsSystem { get; set; } = false;
    }
} 